package cn.sunxyz.struct.decorator;

/**
 * Created by yangrd on 2017/5/12.
 */
public class Client {

    public static void main(String[] args) {
        Drink coffe = new Coffe(15);
        Drink bigCupCoffe = new BigCup(coffe).formula(i -> i * 3);
        System.out.println(bigCupCoffe + "价格： " + bigCupCoffe.getPrice());
    }
}
